<?php
if (!isset($_SESSION))
    session_start();
if (!(isset($_SESSION['k_username']))) {
    ?>
    <script type="text/javascript">
        window.location="/rspinf-usb/Login/login.php";
    </script>

    <?php
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="es-VE">
    <head>

        <script type="text/javascript" src="/rspinf-usb/jquery.js"></script>
        <script language="JavaScript" type="text/javascript" src="/rspinf-usb/buscar/htdocs/ajax_search.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $(".flip").click(function(){
                    $(".panel").slideToggle("slow");
                });
            });
        </script>
        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript">
            var avanzadoOn = false;
            $(document).ready(function(){
                $("#selector").toggle(false);
                $("#hola").click(function(){
                    $("#selector").toggle(500);
                    avanzadoOn = !avanzadoOn;
                    if (!avanzadoOn) {
                      searchType(avanzadoOn);
                    }
                });
                $("#hola").mouseover(function(){
                    $("#hola").css("color","rgb(0,0,255)");
                });
                $("#hola").mouseout(function(){
                    $("#hola").css("color","");
                });

                $("#typeSearch").change(function() {
                    searchType(avanzadoOn);
                  });
              });
        </script>

        <style type="text/css">
            div.panel,p.flip
            {
                margin:0px;
                padding:5px;
                text-align:center;
                background:transparent;
                border:0;
            }
            div.panel
            {
                height:400px;
                display:none;
                text-align:center;
            }

            body {
                font: 11px arial;
            }
            .suggest_link {
                background-color: #FFFFFF;
                padding: 2px 6px 2px 6px;
            }
            .suggest_link_over {
                background-color: #3366CC;
                padding: 2px 6px 2px 6px;
            }
            #search_suggest {
                position: absolute;
                background-color: #FFFFFF;
                text-align: left;
                border: 1px solid #000000;
            }
        </style>


        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="/rspinf-usb/Styles/style.css" rel="stylesheet" type="text/css" media="screen" />
        <title>Pinf</title>
    </head>
    <body>
        <div id="wrapper">
            <!-- Encabezado -->
            <div id="encab">
                <div id="logo">
                    <h1><a href="/rspinf-usb/Noticias/cargarNoticias.php">Pinf </a></h1>
                    <p>tu Red Social</p>
                </div>
                <div id="busq">
                    <table><tr>
                        <div>
                            <form id="frmSearch">
                                <input type="text" id="txtSearch" name="txtSearch" alt="Search Criteria" onkeyup="searchSuggest();" autocomplete="off" font-size=10 size=23/>
                               <!-- <input type="submit" id="cmdSearch" name="cmdSearch" value="Search" alt="Run Search" /><br /> -->
                                <div id="search_suggest" width="200px">
                                </div>
                            </form>
                        </div>
                        </tr>
                        <tr>
                            <td>
                                <button id="hola" font-size=10 size=23>Busqueda Avanzada</button>
                            </td>
                            <td>
                                <form id="selector">
                                    <select id="typeSearch" name="typeSearch" >
                                        <option value="perfil" class="search" >Usuarios</option>
                                        <option value="grupo" class="search" >Grupos</option>
                                        <option value="evento" class="search" >Eventos</option>
                                        <option value="noticia" class="search" >Noticias</option>
                                    </select>
                                </form>
                            </td>
                        </tr>
                    </table>

                    <div id="logout">
                        <a style="color:white" href="/rspinf-usb/Login/logout.php">Cerrar sesi&oacuten </a> </div>
                </div>



            </div>
            <!-- Fin Encabezado -->
            <!-- Fin Encabezado -->
